////////////////////////////////////////////////////////////////////////////////
// Copyright 2006 CORE Solutions Limited
// All rights reserved.
// PROPRIETARY AND CONFIDENTIAL INFORMATION.
// Use is subject to license terms.
//
// FUNCTION ID      :   CODE
// AUTHOR           :   Saint Peng
// DATE CREATE      :   2006/01/05
// DESCRIPTION      :   a SCHEMA file for the function, CODE
//                  :
//                  :
//                  :
//
// MODIFICATION HISTORY:
// DATE         AUTHOR          VERSION NO.         COMMENT
// -----------  --------------  ------------------  -------------------
// 2006/01/05   Saint Peng      1.0                 source is generated.
//
//
//
////////////////////////////////////////////////////////////////////////////////

package com.erp.app.setup.codeSetup.schema;

import com.erp.framework.model.schema.MetaData;
import com.erp.framework.model.schema.TableSchema;

/**
* <p>A <strong>Schema</strong> stores the table meta information.
* The main purpose for this class is to validate the lengths of UniCode Characters,
* and notify the database to store UniCode characters from web browsers.
*
* @author          Saint Peng
* @version 1.0     2006/01/05
* @since           FrameWork 1.0
*
*/
public class CodeHdrSchema extends TableSchema {

	public static final String TABLE_NAME = "T_CODE_HDR";

	public CodeHdrSchema(){

		MetaData md = null;

		md = new MetaData();
		md.setColumnName("LBL_TAB_DOC");
		md.setVoPropertyName("lblTabDoc");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_TAB_DOC");
		md.setWebLabelName("Code");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("LBL_MOD_NAME");
		md.setVoPropertyName("lblModName");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_MOD_NAME");
		md.setWebLabelName("Code Setup");
		ts.add(md);


		md = new MetaData();
		md.setWebObjectId("LBL_SRCH_FROM");
		md.setWebLabelName("DEF SRCH FROM");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		ts.add(md);

		md = new MetaData();
		md.setWebObjectId("LBL_SRCH_TO");
		md.setWebLabelName("DEF SRCH TO");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		ts.add(md);

		md = new MetaData();
		md.setColumnName("COMPANY_CODE");
		md.setVoPropertyName("companyCode");
		md.setColumnTitle("COMPANY_CODE");
		md.setColumnTypeName("VARCHAR2");
		md.setColumnType(12);
		md.setColumnSize(30);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.lang.String");
		md.setColumnPrecision(30);
		md.setColumnScale(0);
		md.setDisplaySize(30);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(0);
		md.setWebObjectId("LBL_HDR_COMPANY_CODE");
		md.setWebLabelName("DEF HDR COMPANY CODE");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("LBL_SRCH_COMPANY_CODE");
		md.setVoPropertyName("lblSrchCompanyCode");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_SRCH_COMPANY_CODE");
		md.setWebLabelName("DEF SRCH COMPANY CODE");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("LBL_GRID_COMPANY_CODE");
		md.setVoPropertyName("lblGridCompanyCode");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_GRID_COMPANY_CODE");
		md.setWebLabelName("DEF GRID COMPANY CODE");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("REF_MASTER_CODE");
		md.setVoPropertyName("refMasterCode");
		md.setColumnTitle("REF_MASTER_CODE");
		md.setColumnTypeName("VARCHAR2");
		md.setColumnType(12);
		md.setColumnSize(30);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.lang.String");
		md.setColumnPrecision(30);
		md.setColumnScale(0);
		md.setDisplaySize(30);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(0);
		md.setWebObjectId("LBL_HDR_REF_MASTER_CODE");
		md.setWebLabelName("DEF HDR REF MASTER CODE");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("LBL_SRCH_REF_MASTER_CODE");
		md.setVoPropertyName("srchRefMasterCodeFr");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_SRCH_REF_MASTER_CODE");
		md.setWebLabelName("DEF SRCH REF MASTER CODE");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("LBL_SRCH_REF_MASTER_CODE");
		md.setVoPropertyName("srchRefMasterCodeTo");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_SRCH_REF_MASTER_CODE");
		md.setWebLabelName("DEF SRCH REF MASTER CODE");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("LBL_GRID_REF_MASTER_CODE");
		md.setVoPropertyName("lblGridRefMasterCode");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_GRID_REF_MASTER_CODE");
		md.setWebLabelName("DEF GRID REF MASTER CODE");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("REF_DESC");
		md.setVoPropertyName("refDesc");
		md.setColumnTitle("REF_DESC");
		md.setColumnTypeName("VARCHAR2");
		md.setColumnType(12);
		md.setColumnSize(2000);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.lang.String");
		md.setColumnPrecision(2000);
		md.setColumnScale(0);
		md.setDisplaySize(30);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_HDR_REF_DESC");
		md.setWebLabelName("Ref Description");
		ts.add(md);

        md = new MetaData();
        md.setColumnName("REF_1_DESC");
        md.setVoPropertyName("ref1Desc");
        md.setColumnTitle("REF_1_DESC");
        md.setColumnTypeName("VARCHAR2");
        md.setColumnType(12);
        md.setColumnSize(2000);
        md.setColumnCatalogName("");
        md.setColumnClassName("java.lang.String");
        md.setColumnPrecision(2000);
        md.setColumnScale(0);
        md.setDisplaySize(30);
        md.setTextAreaColSize(20);
        md.setTextAreaRowSize(2);
        md.setIsNullable(1);
        md.setWebObjectId("LBL_HDR_REF_1_DESC");
        md.setWebLabelName("Ref 1 Description");
        ts.add(md);

        md = new MetaData();
        md.setColumnName("REF_2_DESC");
        md.setVoPropertyName("ref2Desc");
        md.setColumnTitle("REF_2_DESC");
        md.setColumnTypeName("VARCHAR2");
        md.setColumnType(12);
        md.setColumnSize(2000);
        md.setColumnCatalogName("");
        md.setColumnClassName("java.lang.String");
        md.setColumnPrecision(2000);
        md.setColumnScale(0);
        md.setDisplaySize(30);
        md.setTextAreaColSize(20);
        md.setTextAreaRowSize(2);
        md.setIsNullable(1);
        md.setWebObjectId("LBL_HDR_REF_2_DESC");
        md.setWebLabelName("Ref 2 Description");
        ts.add(md);

        md = new MetaData();
        md.setColumnName("REF_3_DESC");
        md.setVoPropertyName("ref3Desc");
        md.setColumnTitle("REF_3_DESC");
        md.setColumnTypeName("VARCHAR2");
        md.setColumnType(12);
        md.setColumnSize(2000);
        md.setColumnCatalogName("");
        md.setColumnClassName("java.lang.String");
        md.setColumnPrecision(2000);
        md.setColumnScale(0);
        md.setDisplaySize(30);
        md.setTextAreaColSize(20);
        md.setTextAreaRowSize(2);
        md.setIsNullable(1);
        md.setWebObjectId("LBL_HDR_REF_3_DESC");
        md.setWebLabelName("Ref 3 Description");
        ts.add(md);

        md = new MetaData();
		md.setColumnName("LBL_SRCH_REF_DESC");
		md.setVoPropertyName("srchRefDescFr");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_SRCH_REF_DESC");
		md.setWebLabelName("Ref Description");
		ts.add(md);
		
		md = new MetaData();
		md.setColumnName("LBL_SRCH_REF_DESC");
		md.setVoPropertyName("srchRefDescTo");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_SRCH_REF_DESC");
		md.setWebLabelName("Ref Description");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("LBL_GRID_REF_DESC");
		md.setVoPropertyName("lblGridRefDesc");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_GRID_REF_DESC");
		md.setWebLabelName("Ref Description");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("CREATE_USER");
		md.setVoPropertyName("createUser");
		md.setColumnTitle("CREATE_USER");
		md.setColumnTypeName("VARCHAR2");
		md.setColumnType(12);
		md.setColumnSize(30);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.lang.String");
		md.setColumnPrecision(30);
		md.setColumnScale(0);
		md.setDisplaySize(30);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_HDR_CREATE_USER");
		md.setWebLabelName("DEF HDR CREATE USER");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("CREATE_DATE");
		md.setVoPropertyName("createDate");
		md.setColumnTitle("CREATE_DATE");
		md.setColumnTypeName("DATE");
		md.setColumnType(91);
		md.setColumnSize(15);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.sql.Timestamp");
		md.setColumnPrecision(0);
		md.setColumnScale(0);
		md.setDisplaySize(15);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_HDR_CREATE_DATE");
		md.setWebLabelName("DEF HDR CREATE DATE");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("UPDATE_USER");
		md.setVoPropertyName("updateUser");
		md.setColumnTitle("UPDATE_USER");
		md.setColumnTypeName("VARCHAR2");
		md.setColumnType(12);
		md.setColumnSize(30);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.lang.String");
		md.setColumnPrecision(30);
		md.setColumnScale(0);
		md.setDisplaySize(30);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_HDR_UPDATE_USER");
		md.setWebLabelName("DEF HDR UPDATE USER");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("UPDATE_DATE");
		md.setVoPropertyName("updateDate");
		md.setColumnTitle("UPDATE_DATE");
		md.setColumnTypeName("DATE");
		md.setColumnType(91);
		md.setColumnSize(15);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.sql.Timestamp");
		md.setColumnPrecision(0);
		md.setColumnScale(0);
		md.setDisplaySize(15);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_HDR_UPDATE_DATE");
		md.setWebLabelName("DEF HDR UPDATE DATE");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("SHOW_DESC");
		md.setVoPropertyName("showDesc");
		md.setColumnTitle("SHOW_DESC");
		md.setColumnTypeName("VARCHAR2");
		md.setColumnType(12);
		md.setColumnSize(10);
		md.setColumnCatalogName("");
		md.setColumnClassName("java.lang.String");
		md.setColumnPrecision(1);
		md.setColumnScale(0);
		md.setDisplaySize(1);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_HDR_SHOW_DESC");
		md.setWebLabelName("DEF HDR SHOW DESC");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("LBL_SRCH_SHOW_DESC");
		md.setVoPropertyName("lblSrchShowDesc");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_SRCH_SHOW_DESC");
		md.setWebLabelName("DEF SRCH SHOW DESC");
		ts.add(md);

		md = new MetaData();
		md.setColumnName("LBL_GRID_SHOW_DESC");
		md.setVoPropertyName("lblGridShowDesc");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		md.setWebObjectId("LBL_GRID_SHOW_DESC");
		md.setWebLabelName("DEF GRID SHOW DESC");
		ts.add(md);

		md = new MetaData();
		md.setWebObjectId("LBL_HDR_SELECT");
		md.setWebLabelName("DEF HDR SELECT");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		ts.add(md);

		md = new MetaData();
		md.setWebObjectId("LBL_HDR_DELETE");
		md.setWebLabelName("DEF HDR DELETE");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		ts.add(md);

		md = new MetaData();
		md.setWebObjectId("LBL_SEARCH_MOD_NAME");
		md.setWebLabelName("DEF SEARCH MOD NAME");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		ts.add(md);

		md = new MetaData();
		md.setWebObjectId("LBL_MAINT_MOD_NAME");
		md.setWebLabelName("DEF MAINT MOD NAME");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		ts.add(md);

		md = new MetaData();
		md.setWebObjectId("LBL_SRCH_FROM");
		md.setWebLabelName("DEF SRCH FROM");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		ts.add(md);

		md = new MetaData();
		md.setWebObjectId("LBL_SRCH_TO");
		md.setWebLabelName("DEF SRCH TO");
		md.setColumnSize(35);
		md.setDisplaySize(20);
		md.setTextAreaColSize(20);
		md.setTextAreaRowSize(2);
		md.setIsNullable(1);
		ts.add(md);

	}

}